import config from "../config";
import axios from 'axios';
import * as apiPre from "@/apis/apiPre";
export function login(form){
  let promise=axios.post(config.url+'/login',form);
  return promise;
}
export function getMyWord(data){
  return apiPre.preFun("/getMyWord",data);

}
export function checkLogin(data){
  return apiPre.preFun("/checkLoginStatus",data);

}
export function getNotMemoryWord(data){
  return apiPre.preFun("/getNotMemoryWord",data);

}
export function addMyWord(data){
  return apiPre.preFun("/addMyWord",data);

}
export function getMyOneWordMessage(data){
  return apiPre.preFun("/getMyOneWordMessage",data);

}

export function changeWordLevel(data){
  return apiPre.preFun("/changeWordLevel",data);

}
export function getMySetting(data){
  return apiPre.preFun("/getMySetting",data);

}
export function setSetting(data){
  return apiPre.preFun("/setSetting",data);

}

export function getStatics(data){
  return apiPre.preFun("/getStatics",data);

}
export function removeWord(data){
  return apiPre.preFun("/removeWord",data);

}

  